﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Jn698._45GWTool.Views
{
    /// <summary>
    /// InfoView.xaml 的交互逻辑
    /// </summary>
    public partial class InfoView : Window
    {
        public InfoView()
        {
            InitializeComponent();
            Assembly assembly = Assembly.GetExecutingAssembly();

            // 获取文件的构建时间（编译时间）
            DateTime buildTime = File.GetLastWriteTime(assembly.Location);
            this.text.Text = "更新时间："+buildTime.ToString("yyyy-MM-dd HH:mm:ss");
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }
    }
}
